package com.weicoder.shop.po

import javax.persistence.Entity
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import org.springframework.context.annotation.Scope
import org.springframework.stereotype.Component
import org.springframework.beans.factory.config.ConfigurableBeanFactory
import com.weicoder.base.annotation.Cache
import com.weicoder.site.entity.base.BaseEntityIdTime
import scala.beans.BeanProperty

/**
 * 在线客服
 * @author WD
 * @since JDK7
 * @version 1._ 2_12-_8-27
 */
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Entity
@DynamicInsert
@DynamicUpdate
@Cache
class Customer extends BaseEntityIdTime {
  // 类型
  //	Integer				type
  // 联系方式
  @BeanProperty
  var contact: String = _
  // 名称
  @BeanProperty
  var name: String = _
}
